﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LOG_IN_USER.ascx.cs"
    Inherits="TuyenDungViecLam.User_control.LOG_IN" %>
<div class="art-Block">
    <div class="art-Block-tl">
    </div>
    <div class="art-Block-tr">
    </div>
    <div class="art-Block-bl">
    </div>
    <div class="art-Block-br">
    </div>
    <div class="art-Block-tc">
    </div>
    <div class="art-Block-bc">
    </div>
    <div class="art-Block-cl">
    </div>
    <div class="art-Block-cr">
    </div>
    <div class="art-Block-cc">
    </div>
    <div class="art-Block-body">
        <asp:Panel ID="Login" runat="server">
            <h2 class="Login">
                Đăng Nhập</h2>
            <%--<asp:Login ID="Login1" runat="server">
        <LayoutTemplate>
            <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                <tr>
                    <td>
                        <table border="0" cellpadding="0">
                            <tr>
                                <td align="left">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tài khoản</asp:Label>
                                </td>
                                <td>
                                &nbsp;
                                    <asp:TextBox ID="UserName" CssClass="textbox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="Yêu cầu nhập tài khoản" ToolTip="Yêu cầu nhập tài khoản" 
                                        ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                            <td></td>
                            <td></td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu</asp:Label>
                                </td>
                                <td>
                                &nbsp;
                                    <asp:TextBox ID="Password" CssClass="textbox" runat="server" TextMode="Password"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="Yêu cầu nhập pass" ToolTip="Yêu cầu nhập pass" 
                                        ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Nhớ mật khẩu" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="3" style="color: Red;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="LoginButton" runat="server" CssClass="button" CommandName="Login"
                                        Text="Log In" ValidationGroup="ctl00$Login1" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:Login>--%>
            <div class="art-BlockContent">
                <asp:Login ID="LoginEmployee" MembershipProvider="MyMembershipProvider" runat="server"
                    OnAuthenticate="LoginEmployee_Authenticate">
                    <LayoutTemplate>
                        <div>
                            <div style="float: left; position: absolute; width: 65px">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tài khoản</asp:Label>
                            </div>
                            <div style="margin-left: 70px;">
                                <asp:TextBox ID="UserName" CssClass="textbox" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div style="clear: both">
                            <div style="float: left; position: absolute; width: 65px">
                            </div>
                            <div style="margin-left: 70px;">
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="Yêu cầu nhập tài khoản" ToolTip="Yêu cầu nhập tài khoản" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div style="clear: both">
                            <div style="float: left; position: absolute; width: 65px">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu</asp:Label>
                            </div>
                            <div style="margin-left: 70px;">
                                <asp:TextBox ID="Password" CssClass="textbox" runat="server" TextMode="Password"></asp:TextBox>
                            </div>
                        </div>
                        <div style="clear: both">
                            <div style="float: left; position: absolute; width: 65px">
                            </div>
                            <div style="margin-left: 70px;">
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    ErrorMessage="Yêu cầu nhập pass" ToolTip="Yêu cầu nhập pass" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div style="clear: both">
                            <div style="float: left; position: absolute; width: 65px">
                            </div>
                            <div style="margin-left: 70px;">
                                <asp:CheckBox ID="RememberMe" runat="server" Text="Nhớ mật khẩu" />
                            </div>
                        </div>
                        <div style="clear: both">
                            <div style="float: left; position: absolute; width: 65px">
                            </div>
                            <div style="margin-left: 70px; color: #FF0000;">
                                <asp:Button ID="LoginButton" runat="server" CssClass="button" CommandName="Login"
                                    Text="Đăng nhập" ValidationGroup="ctl00$Login1" OnClick="LoginButton_Click" /><asp:Literal
                                        ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </div>
                        </div>
                    </LayoutTemplate>
                </asp:Login>
            </div>
            <%--<asp:Login ID="Login1" runat="server">
    </asp:Login>--%>
            <%--<table border="0">
        <tr>
            <td>
                Tài khoản
            </td>
            <td>
                &nbsp;<input id="Text3" type="text" class="textbox" />
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu
            </td>
            <td>
                &nbsp;<input id="Password1" type="password" class="textbox" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input id="Checkbox2" type="checkbox" value="aaa" />
                Nhớ mật khẩu
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="Button2" runat="server" Text="Đăng nhập" class="button" OnClick="Button2_Click" />
            </td>
        </tr>
    </table>--%>
        </asp:Panel>
        <div class="art-BlockContent">
            <asp:Panel ID="Logout" runat="server" Visible="false">
                <center>
                    <h2 class="Logout">
                        Đăng Xuất</h2>
                </center>
                <table border="0">
                    <tr>
                        <td>
                            Tài khoản:
                        </td>
                        <td>
                            <asp:Label ID="lbtaikhoan" runat="server" Font-Bold="True" ForeColor="#0000CC"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Vai trò
                        </td>
                        <td>
                            <asp:Label ID="lbvaitro" runat="server" Font-Bold="True" ForeColor="#0000CC"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:LoginStatus ID="LoginStatus1" Style="text-align: center" runat="server" CssClass="button"
                                LoginText="Đăng nhập" LogoutText="Đăng xuất" OnLoggingOut="LoginStatus1_LoggingOut" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </div>
</div>
